// 频道相关请求模块

import request from '@/utils/request'

// 获取文章列表
export const getArticles = (params) => request({
    method: 'GET',
    url: '/v1_0/channels',
    params
})


// 添加频道
export const addUserChannel = (data) => request({
    method: 'PATCH',
    url: '/v1_0/user/channels',
    data
})

// 删除频道
export const deleteUserChannel = (channelId) => request({
    method: 'DELETE',
    url: `/v1_0/user/channels/${channelId}`,
})